﻿using Swork03_28.Domain.TraceableInfos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Swork03_28.Services.Interface
{
    public interface ITraceableService
    {
        Task<List<Traceables>> AllAsync();

        Task<int> CreateAsync(Traceables entity);

        Task<int> DeleteAllAsync(List<Traceables> t);

        Task<int> DeleteAsync(Traceables entity);

        Task<Traceables> GetAsync(int id);

        Task<List<Traceables>> GetValues(Expression<Func<Traceables, bool>> expre);

        Task<int> UpdateAsync(Traceables entity);
    }
}
